<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>ThinkPHP示例：URL路由</title>
        <link rel='stylesheet' type='text/css' href='__PUBLIC__/Css/common.css'>
    </head>
    <body>
        <div class="main">
            <h2>ThinkPHP示例之：URL路由</h2>
            配置URL路由定义文件，设置简单路由和泛路由<br/>
            <table  cellpadding=3 cellspacing=3>
                <tr>
                    <td>
                        <div class="result">
                            当前URL：<br/>{$Think.server.PHP_SELF} <br/>路由到模块 <span style="color:red">{$Think.const.MODULE_NAME}</span> 的<span style="color:red">{$Think.const.ACTION_NAME}</span> 操作<br/>
                            参数:<br/>
                            <volist name="vars" id="v">
                                {$key}=>{$v}<br/>
                            </volist>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tLeft" >
                        简单路由1：<a href="__APP__/blog/name">/blog/name</a><br/>
                        简单路由2：<a href="__APP__/blog/1">/blog/1</a><br/>
                        简单路由3：<a href="__APP__/blog/2008/2">/blog/2008/2</a><br/>
                        正则路由：<a href="__APP__/123456">/123456</a><br/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <hr> 示例源码<br/>配置文件config.php<br/> <php>highlight_file(CONF_PATH.'config.php');</php><br/>
                        控制器IndexAction类<br/><php>highlight_file(LIB_PATH.'Action/IndexAction.class.php');</php><br/>
                        控制器BlogAction类<br/><php>highlight_file(LIB_PATH.'Action/BlogAction.class.php');</php>
                    </td>
                </tr>
            </table>
        </div>
    </body>
</html>